package util

import (
	"strconv"

	"github.com/bwmarrin/snowflake"
	"github.com/google/uuid"
)

func GenerateSnowflakeId() string {
	node, _ := snowflake.NewNode(1)
	id := strconv.FormatInt(node.Generate().Int64(), 10)
	return id
}

func GenerateToken() string {
	UUID, _ := uuid.NewRandom()
	return UUID.String()
}
